import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
Vue.config.productionTip = false;
Vue.use(Antd);

// css动画库
import 'animate.css';
// 懒加载
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: require('./assets/error.gif'),//图片路径错误时加载图片
  loading: require('./assets/loading.gif'),//预加载图片
  attempt: 2,
  lazyComponent: true,
  throttleWait: 1000,
})

// 瀑布流
import { VueMasonryPlugin } from 'vue-masonry'
Vue.use(VueMasonryPlugin)

// 图片预览
import preview from 'vue-photo-preview';
import 'vue-photo-preview/dist/skin.css';
Vue.use(preview);




new Vue({
  router,
  store,
  render(h) { return h(App); },
}).$mount('#app');
